package com.ch.dream.common;

import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.TextView;

public class MarqueeTextView extends TextView {
 
	
	public MarqueeTextView(Context context) {
		super(context, null);
	}
	
	public MarqueeTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public MarqueeTextView(Context context, AttributeSet attrs,int defStyle) {
		super(context, attrs,defStyle);
	}
	
	@Override
	protected void onFocusChanged(boolean focused, int direction,
			Rect previouslyFocusedRect) {
		if(focused){
			super.onFocusChanged(focused, direction, previouslyFocusedRect);
		}
	}
	
	@Override
	public void onWindowFocusChanged(boolean hasWindowFocus) {
		if(hasWindowFocus){
			super.onWindowFocusChanged(hasWindowFocus);
		}
	}
	
	@Override
	public boolean isFocused() {
		return true;
	}
}
